/* Themed Obituaries - General Styles
   v1.0 | Troy Holleman
*/
/* ========================================================== //
// -- Partials */
/* ========================================================== //
// -- Colors */
/* ========================================================== //
// -- Breakpoint Media Queries */
/* ========================================================== //
// -- Images */
/* ========================================================== //
// -- Buttons */
/* ========================================================== //
// -- Main Obit Image */
/* ========================================================== //
// -- Content Container */
article.obituary, div.cta-link, div.flowers {
  padding: 4em 4.5em;
  margin-bottom: 2em;
  border-radius: 5px;
}

@media screen and (max-width: 1280px) {
  article.obituary, div.cta-link, div.flowers {
    padding: 3em 3.5em;
  }
}

@media screen and (max-width: 1023px) {
  article.obituary, div.cta-link, div.flowers {
    padding: 2em 3em;
  }
}

@media screen and (max-width: 480px) {
  article.obituary, div.cta-link, div.flowers {
    padding: 2em;
  }
}

/* ========================================================== //
// -- Photo Overlay */
div.cta-link::after, div.flowers::after {
  content: " ";
  background-color: rgba(255, 255, 255, 0.6);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 5px;
  z-index: 1;
}

/* ========================================================== //
// -- Pseudo-paper */
/* ========================================================== //
// -- Service Listing Elements */
/* ---------------- */
/* ---------------- */
/* ---------------- */
/* ========================================================== //
// -- Base Elements */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background-color: #DEDEDE;
  font-size: 14px;
  color: #636466;
}

h2, h3, h4 {
  text-transform: uppercase;
  padding-bottom: 0.5em;
  font-weight: 300;
}

h1 {
  font-size: 3.5em;
  padding-bottom: 0.1em;
}

@media screen and (max-width: 1023px) {
  h1 {
    font-size: 3.25em;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.75em;
    padding-bottom: 0.2em;
  }
}

h2 {
  font-size: 2.25em;
}

@media screen and (max-width: 1023px) {
  h2 {
    font-size: 2em;
  }
}

@media screen and (max-width: 480px) {
  h2 {
    font-size: 1.75em;
  }
}

h3 {
  font-size: 2em;
}

@media screen and (max-width: 1023px) {
  h3 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 480px) {
  h3 {
    font-size: 1.75em;
  }
}

h4 {
  font-size: 1.75em;
}

h5 {
  font-size: 1.1em; /* 2-6-19 font-size: 1.25em;*/
  font-weight: 300;
}

@media screen and (max-width: 1024px) {
  h5 {
    font-size: 1em; /* new add-in 1-10-19 font-size: 1em; */
  }
}

@media screen and (max-width: 768px) {
  h5 {
    font-size: 1.1em; /* 1-10-19 new add-in */
  }
}


@media screen and (max-width: 480px) {
  h5 {
    font-size: .9em; /* 1-10-19 font-size: 1em; */
  }
}


@media screen and (max-width: 380px) {
  h5 {
    font-size: .7em; /* 1-10-19 new add-in */
  }
}


a {
  text-decoration: none;
}

p {
  line-height: 1.75em;
  font-weight: 300;
  padding-bottom: 1em;
}

nav {
  width: 100%;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.75);
  z-index: 4;
}

nav section {
  -js-display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: 0 auto;
  padding: 0 1em;
  line-height: 3em;
  text-transform: uppercase;
}

@media screen and (max-width: 480px) {
  nav section {
    font-size: 0.8em;   /* font-size: 0.9em; */
    line-height: 3.8em; /* line-height: 3.4em; */
  }
}

.flexboxtweener nav section .home {
  float: right;
}

/* ========================================================== //
// -- Button */
.btn {
  display: inline-block;
  outline: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.btn-small {
  border-radius: 25px;
  padding: 0.4em 1.75em;
  font-size: 11px;
}

.btn.btn-dark {
  background-color: #636466;
  border-color: #4a4b4c !important;
  border-width: 1px 1px 3px 1px;
  border-style: solid;
  cursor: pointer;
  color: white;
}

.btn.btn-dark:hover {
  background-color: #898a8c;
}

.btn.btn-dark:active {
  background-color: #707173;
  border-width: 3px 1px 1px 1px;
}

.btn.btn-light {
  background-color: #F5F5F5;
  border-color: gainsboro !important;
  border-width: 1px 1px 3px 1px;
  border-style: solid;
  cursor: pointer;
  color: #636466;
}

.btn.btn-light:hover {
  background-color: white;
}

.btn.btn-light:active {
  background-color: white;
  border-width: 3px 1px 1px 1px;
}

.btn span + i {
  margin-left: 5px;
}

/* ========================================================== //
// -- Toggle Checkbox */
input.tgl {
  display: none !important;
}

input.tgl ~ .less {
  display: none;
}

input.tgl:checked ~ .more {
  display: none;
}

input.tgl:checked ~ .less {
  display: inline-block;
}

.tgl::-moz-selection,
.tgl:after::-moz-selection,
.tgl:before::-moz-selection,
.tgl *::-moz-selection,
.tgl *:after::-moz-selection,
.tgl *:before::-moz-selection,
.tgl + .tgl-btn::-moz-selection {
  background: none;
}

.tgl::selection,
.tgl:after::selection,
.tgl:before::selection,
.tgl *::selection,
.tgl *:after::selection,
.tgl *:before::selection,
.tgl + .tgl-btn::selection {
  background: none;
}

/* ========================================================== //
// -- Banner Layouts Shared Styles */
#banner1 nav section, #banner2 nav section {
  max-width: 1128px;
}

@media screen and (max-width: 1280px) {
  #banner1 nav section, #banner2 nav section {
    width: 1000px;
  }
}

@media screen and (max-width: 1023px) {
  #banner1 nav section, #banner2 nav section {
    width: 100%;
  }
}

#banner1 header, #banner1 main, #banner1 footer, #banner2 header, #banner2 main, #banner2 footer {
  max-width: 1128px;
  margin: 0 auto;
}

@media screen and (max-width: 1280px) {
  #banner1 header, #banner1 main, #banner1 footer, #banner2 header, #banner2 main, #banner2 footer {
    width: 1000px;
  }
}

@media screen and (max-width: 1023px) {
  #banner1 header, #banner1 main, #banner1 footer, #banner2 header, #banner2 main, #banner2 footer {
    width: 100%;
  }
}

#banner1 header, #banner2 header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
}

#banner1 main, #banner2 main {
  -js-display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  background-color: white;
  padding-left: 2em;
  padding-right: 2em;
  position: relative;
}

footer {
  -js-display: flex;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  padding: 2em;
  position: relative;
}

footer div.callback {
  text-align: center;
}

@media screen and (max-width: 1023px) {
  #banner1 main, #banner2 main, #banner1 footer, #banner2 footer {
    padding: 0 1.5em;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  #banner1 main, #banner2 main, #banner1 footer, #banner2 footer {
    padding: 0 15px;
  }
}

#banner1 article.obituary, #banner2 article.obituary {
  background-color: #F5F5F5;
  border: 1px solid #DDDDDD;
}

/* ========================================================== //
// -- Social Media Links */
div.obit-share {
  text-transform: uppercase;
  padding-bottom: 1em;
}

div.obit-share span {
  padding-right: 0.5em;
}

div.obit-share > a {
  background-color: #636466;
  border-color: #4a4b4c !important;
  border-width: 1px 1px 3px 1px;
  border-style: solid;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: inline-table;
  text-align: center;
  margin: 0 0.5em;
  border-radius: 50%;
}

div.obit-share > a:hover {
  background-color: #898a8c;
}

div.obit-share > a:active {
  background-color: #707173;
  border-width: 3px 1px 1px 1px;
}

@media screen and (max-width: 480px) {
  div.obit-share > a {
    margin: 0 0.4em;
  }
}

div.obit-share i {
  color: white;
  display: table-cell;
  vertical-align: middle;
  font-size: 1.5em;
}

@media screen and (max-width: 480px) {
  div.obit-share i {
    font-size: 1.25em;
  }
}

/* ========================================================== //
// -- Obituary Text */
article.obituary .text-fade {
  overflow: hidden;
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(65%, white), to(rgba(255, 255, 255, 0)));
  -webkit-mask-image: linear-gradient(white 65%, rgba(255, 255, 255, 0) 100%);
          mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(65%, white), to(rgba(255, 255, 255, 0)));
          mask-image: linear-gradient(white 65%, rgba(255, 255, 255, 0) 100%);
}

article.obituary .read-more {
  padding-top: 1em;
  text-align: center;
}

article.obituary h2, section.guestbooklist p em, div.media-body {color: #333333}
.obit-text {color: #333333; line-height: 21px}
.obit-text a {text-decoration: underline}
.obit-text a:hover {text-decoration: none}

/* ========================================================== //
// -- Service Information */
article.service {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

@media screen and (max-width: 480px) {
  article.service {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

article.service .title {
  font-weight: 300;
}

article.service .title span {
  font-size: 1.1em;
  line-height: 1.4em;
}

article.service .icon-list {
  padding-left: 5%;
}

/* ========================================================== //
// -- Main Obituary Links - Vertical List with Icons */
div.obit-links {
  text-transform: uppercase;
}

div.obit-links a:first-of-type {
  margin-left: 0;
}

div.obit-links a:last-of-type {
  margin-right: 0;
}

div.obit-links a, div.obit-links label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
}

div.obit-links a.cta span, div.obit-links label.cta span {
  font-size: 1.25em;
  line-height: 1.25em;
}

@media screen and (max-width: 480px) {
  div.obit-links a.cta span, div.obit-links label.cta span {
    font-size: 1.1em;
    line-height: normal;
  }
}

div.obit-links a.cta img, div.obit-links a.cta svg, div.obit-links label.cta img, div.obit-links label.cta svg {
  max-height: 60px;
}

@media screen and (max-width: 1023px) {
  div.obit-links a.cta img, div.obit-links a.cta svg, div.obit-links label.cta img, div.obit-links label.cta svg {
    width: 35px;
  }
}

div.obit-links .icon {
  width: 30%;
  text-align: center;
}

@media screen and (max-width: 480px) {
  div.obit-links .icon {
    width: auto;
  }
}

div.obit-links .icon i {
  font-size: 1.4em;
}

@media screen and (max-width: 480px) {
  div.obit-links .icon i {
    font-size: 1.2em;
  }
}

div.obit-links span {
  padding-left: 10px;
}

div.obit-links span + i {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  text-align: right;
  font-size: 0.75em;
}

/* ========================================================== //
// -- Service Links - Vertical List with Icons */
ul.icon-list li {
  padding: 0.4em 0;
  white-space: nowrap;
}

ul.icon-list li.address i {
  font-size: 2em;
}

ul.icon-list .icon {
  width: 1.5em;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  margin-right: 1em;
}

@media screen and (max-width: 480px) {
  ul.icon-list .icon {
    margin-right: 0.5em;
  }
}

ul.icon-list i {
  font-size: 1.5em;
}

ul.icon-list span, ul.icon-list time, ul.icon-list address {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.5em;
  font-weight: 300;
  white-space: normal;
}

/* ========================================================== //
// -- Large secondary links */
div.cta-link-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;   -webkit-flex-flow: row wrap;
   flex-flow: row wrap;  
   -webkit-justify-content: space-between;
   justify-content: space-between;
   -webkit-align-content: stretch;
   align-content: stretch;
   /*margin: 0 -1em;*/
}

@media screen and (max-width: 768px) {
  div.cta-link-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

div.cta-link {
  -webkit-box-flex: 1 1 45%;
  -moz-box-flex:  1 1 45%;
  -webkit-flex:  1 1 45%;
  -ms-flex:  1 1 0;
  flex: 1 1 45%;
  position: relative;
  background-color: #F5F5F5;
  border: 1px solid #DDDDDD;
  /*margin: 0 1em 1em 1em;*/
}


div.cta-link section, div.cta-link button, div.cta-link a {
  position: relative;
  z-index: 2;
}

.guestbook {
  background-image: url("../images/guestbook.jpg");
  background-position: right center;
}

.card {
  background-image: url("../images/sympathy-card.jpg");
  background-position: left center;
}

.local {
  background-image: url("../images/flowers.jpg");
  background-position: right center;
}

.photos {
  background-image: url("../images/photos.jpg");
  background-position: cover;
}

/* ========================================================== //
// -- Bottom Send Flowers CTA */
div.flowers {
  border: 1px solid #DDDDDD;
  background-image: url("../images/flowers2.jpg");
  background-position: left center;
  position: relative;
}

@media screen and (max-width: 480px) {
  div.flowers {
    background-position: 10% center;
  }
}

div.flowers .content {
  width: 40%;
  line-height: 1.5em;
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 480px) {
  div.flowers .content {
    width: 75%;
  }
}

div.flowers .content:first-child {
  margin-bottom: 1em;
}

div.flowers .content p {
  font-weight: 400;
  line-height: 1.25em;
}

div.flowers .content > span {
  display: block;
}

/* ========================================================== //
// -- Parallax */
/*div.parallax {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-perspective: 1px;
          perspective: 1px;
  -webkit-perspective-origin: 50% bottom;
          perspective-origin: 50% bottom;
}

@media screen and (max-width: 768px) {
  div.parallax {
    height: auto;
    -webkit-perspective: none;
            perspective: none;
    position: relative;
    top: 3em;
  }
}

div.parallax > .contain {
  min-height: 100vh;
  position: relative;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

@media screen and (max-width: 768px) {
  div.parallax > .contain {
    min-height: 0;
  }
}

div.parallax > .contain::after {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: " ";
  display: block;
  will-change: transform;
  -webkit-transform: translateZ(-2px) scale(3);
          transform: translateZ(-2px) scale(3);
  -webkit-transform-origin: 50% bottom;
      -ms-transform-origin: 50% bottom;
          transform-origin: 50% bottom;
  z-index: -1;
}

@media screen and (max-width: 768px) {
  div.parallax > .contain::after {
    display: none;
  }
}

.no-preserve3d div.parallax > .contain::after {
  display: none;
}*/

/* ========================================================== //
// -- Vibrant JS */
#swatch-img {
  display: none;
}

.swatch-blur {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  -webkit-filter: blur(20px);
          filter: blur(20px);
  opacity: 0.8;
}

@media screen and (max-width: 480px) {
  .swatch-blur {
    -webkit-filter: blur(15px);
            filter: blur(15px);
  }
}

/* ========================================================== //
// -- Return To Top */
#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 5;
}
#return-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:active {
    background: rgba(0, 0, 0, 0.9);
}
#return-to-top:active i {
    color: #fff;
    top: 5px;
}